package com.codemart.lanze.common;

/**
 *
 */
public class Constant {

	/**
	 * 定时任务状态
	 */
	public enum JobStatus {

		/**
		 * 暂停
		 */
		PAUSE(0),
		/**
		 * 正常
		 */
		NORMAL(1);

		private int value;

		private JobStatus(int value) {
			this.value = value;
		}

		public int getValue() {
			return value;
		}
	}

	/**
	 * 表单token
	 */
	public static final String TOKEN_FORM = "tokenForm";

	/**
	 * 刷新表单token
	 */
	public static final String HEAD_REFRESH_TOKEN_FORM = "X-Refresh-Token-Form";

	/**
	 * Ajax操作没有权限的响应头key
	 */
	public static final String HEAD_NO_PERMISSION_KEY = "X-No-Permission";

	/**
	 * Ajax操作没有权限的响应头value
	 */
	public static final String HEAD_NO_PERMISSION_VALUE = "No-Permission";

	/**
	 * Ajax操作登陆超时的响应头key
	 */
	public static final String HEAD_SESSION_STATUS_KEY = "X-Session-Status";

	/**
	 * Ajax操作登陆超时的响应头value
	 */
	public static final String HEAD_SESSION_STATUS_VALUE = "Session-Timeout";

	/**
	 * 同一个帐号最大会话数
	 */
	public static final int MAX_SESSION = 1;

	/**
	 * 用户登录相关提示
	 */

	public static final String USER_LOGIN_IN = "登录成功!";
	public static final String USER_NOT_FIND = "用户不存在!";
	public static final String USER_INVALID = "用户或密码错误!";
	public static final String USER_HAS_LOCK = "账户已锁定!";
	public static final String USER_ERROR_MANY = "密码错误次数过多!";

	public static final String SYSTEM_ERRORS = "系统错误!";

}
